package com.abc.cloud.dao;

import com.abc.cloud.dto.im.ChatResp;
import com.abc.cloud.entity.ChatEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 聊天表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:17:40
 */
@Mapper
public interface ChatDao extends BaseMapper<ChatEntity> {

    List<ChatResp> queryListById(@Param("userId") Long userId);

    void insertChat(ChatEntity chatEntity);

    void deleteChatByIds(@Param("list") List<Long> ids, @Param("status") Integer status);
}
